# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=swap-digger
pkgver=51.4d18ce0
pkgrel=1
pkgdesc='A tool used to automate Linux swap analysis during post-exploitation or forensics.'
groups=('blackarch' 'blackarch-forensic')
arch=('any')
url='https://github.com/sevagas/swap_digger'
license=('GPL3')
depends=('bash')
makedepends=('git')
source=("$pkgname::git+https://github.com/sevagas/swap_digger.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 swap_digger.sh "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

